package com.adv.crm.services;

import com.adv.crm.beans.CustomerBean;
import com.adv.crm.beans.WarpPageResponse;
import com.adv.crm.beans.WarpResponse;

import java.util.List;

/**
 * Created by 16978 on 2016/7/30.
 */
public interface CustomerService {
    public WarpPageResponse<List<CustomerBean>> getCustomers(int pageIndex, int pageSize);

    public WarpResponse<List<CustomerBean>> getAllCustomer();

    public CustomerBean getCustomerById(int id);

    public WarpResponse<String> insertCustomer(CustomerBean bean);

    public WarpResponse<String> updateCustomer(CustomerBean bean);

    public WarpResponse<String> deleteCustomerById(int id);
}
